<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PUBG比赛详情</title>
    <style>
        body {
            font-family: 'Microsoft YaHei', sans-serif;
            margin: 0;
            padding: 20px;
            background: #1a1a1a;
            color: #ffffff;
        }
        
        .container {
            max-width: 800px;
            margin: 0 auto;
            background: #2a2a2a;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 0 10px rgba(0,0,0,0.5);
        }
        
        .header {
            text-align: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #3a3a3a;
        }
        
        .header h1 {
            margin: 0;
            color: #4a9eff;
        }
        
        .match-info {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .info-item {
            background: #333;
            padding: 10px;
            border-radius: 6px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .info-label {
            color: #888;
        }
        
        .info-value {
            color: #fff;
        }
        
        .stats-section {
            margin-bottom: 20px;
            padding: 15px;
            background: #333;
            border-radius: 8px;
        }
        
        .section-title {
            color: #4a9eff;
            font-size: 1.2em;
            margin-bottom: 15px;
            padding-bottom: 5px;
            border-bottom: 1px solid #444;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        
        .stat-item {
            background: #3a3a3a;
            padding: 10px;
            border-radius: 6px;
        }
        
        .weapon-stats {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 10px;
            margin-top: 10px;
        }
        
        .weapon-item {
            background: #3a3a3a;
            padding: 10px;
            border-radius: 6px;
        }
        
        .weapon-name {
            color: #4a9eff;
            margin-bottom: 5px;
            font-weight: bold;
        }
        
        .weapon-data {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 5px;
            font-size: 0.9em;
        }
        
        .weapon-stat {
            color: #ff4a4a;
        }
        
        .kill-streaks {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }
        
        .streak-item {
            background: #4a4a4a;
            padding: 5px 10px;
            border-radius: 4px;
            color: #ff4a4a;
        }
        
        .movement-stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-top: 10px;
        }
        
        .movement-item {
            background: #4a4a4a;
            padding: 10px;
            border-radius: 6px;
            text-align: center;
        }
        
        .movement-label {
            color: #888;
            margin-bottom: 5px;
        }
        
        .movement-value {
            color: #4a9eff;
            font-size: 1.1em;
        }

        .rank-info {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            padding: 10px;
            background: #3a3a3a;
            border-radius: 6px;
        }

        .rank-item {
            text-align: center;
        }

        .rank-label {
            color: #888;
            font-size: 0.9em;
        }

        .rank-value {
            color: #ff4a4a;
            font-size: 1.2em;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>比赛详细数据</h1>
            <div>{{playerName}} - {{platform}}</div>
        </div>

        <div class="match-info">
            <div class="info-item">
                <span class="info-label">地图:</span>
                <span class="info-value">{{matchInfo.mapName}}</span>
            </div>
            <div class="info-item">
                <span class="info-label">模式:</span>
                <span class="info-value">{{matchInfo.gameMode}}</span>
            </div>
            <div class="info-item">
                <span class="info-label">时间:</span>
                <span class="info-value">{{matchInfo.createdAt}}</span>
            </div>
            <div class="info-item">
                <span class="info-label">持续时间:</span>
                <span class="info-value">{{matchInfo.duration}}</span>
            </div>
        </div>

        <div class="stats-section">
            <div class="section-title">战斗数据</div>
            <div class="stats-grid">
                <div class="stat-item">
                    <div class="info-label">击杀</div>
                    <div class="info-value">{{playerStats.kills}}</div>
                </div>
                <div class="stat-item">
                    <div class="info-label">助攻</div>
                    <div class="info-value">{{playerStats.assists}}</div>
                </div>
                <div class="stat-item">
                    <div class="info-label">击倒</div>
                    <div class="info-value">{{playerStats.DBNOs}}</div>
                </div>
                <div class="stat-item">
                    <div class="info-label">造成伤害</div>
                    <div class="info-value">{{playerStats.damageDealt}}</div>
                </div>
                <div class="stat-item">
                    <div class="info-label">承受伤害</div>
                    <div class="info-value">{{playerStats.damageTaken}}</div>
                </div>
                <div class="stat-item">
                    <div class="info-label">爆头击杀</div>
                    <div class="info-value">{{playerStats.headshotKills}}</div>
                </div>
                <div class="stat-item">
                    <div class="info-label">最远击杀</div>
                    <div class="info-value">{{playerStats.longestKill}}米</div>
                </div>
                <div class="stat-item">
                    <div class="info-label">治疗次数</div>
                    <div class="info-value">{{playerStats.heals}}</div>
                </div>
                <div class="stat-item">
                    <div class="info-label">能量补给</div>
                    <div class="info-value">{{playerStats.boosts}}</div>
                </div>
            </div>

            <div class="rank-info">
                <div class="rank-item">
                    <div class="rank-label">击杀排名</div>
                    <div class="rank-value">#{{playerStats.killPlace}}</div>
                </div>
                <div class="rank-item">
                    <div class="rank-label">生存时间</div>
                    <div class="rank-value">{{playerStats.timeSurvived}}秒</div>
                </div>
                <div class="rank-item">
                    <div class="rank-label">最终排名</div>
                    <div class="rank-value">#{{playerStats.winPlace}}</div>
                </div>
            </div>

        </div>

        <div class="stats-section">
            <div class="section-title">武器使用统计</div>
            <div class="weapon-stats">
                {{#if playerStats.weaponStats}}
                {{#each playerStats.weaponStats}}
                <div class="weapon-item">
                    <div class="weapon-name">{{@key}}</div>
                    <div class="weapon-data">
                        <div>击杀:</div>
                        <div class="weapon-stat">{{this.kills}}</div>
                        <div>爆头:</div>
                        <div class="weapon-stat">{{this.headshots}}</div>
                        <div>伤害:</div>
                        <div class="weapon-stat">{{this.damage}}</div>
                    </div>
                </div>
                {{/each}}
                {{/if}}
            </div>
        </div>

        <div class="stats-section">
            <div class="section-title">连杀记录</div>
            <div class="kill-streaks">
                {{#if playerStats.killStreaks.length}}
                {{#each playerStats.killStreaks}}
                <div class="streak-item">{{this}}连杀</div>
                {{/each}}
                {{/if}}
            </div>
        </div>

        <div class="stats-section">
            <div class="section-title">移动数据</div>
            <div class="movement-stats">
                <div class="movement-item">
                    <div class="movement-label">总距离</div>
                    <div class="movement-value">{{playerStats.movement.total}}米</div>
                </div>
                <div class="movement-item">
                    <div class="movement-label">载具距离</div>
                    <div class="movement-value">{{playerStats.movement.vehicle}}米</div>
                </div>
                <div class="movement-item">
                    <div class="movement-label">步行距离</div>
                    <div class="movement-value">{{playerStats.movement.walking}}米</div>
                </div>
                <div class="movement-item">
                    <div class="movement-label">游泳距离</div>
                    <div class="movement-value">{{playerStats.movement.swimming}}米</div>
                </div>
            </div>
        </div>
    </div>
</body>
</html> 